//
//  Jikken.h
//  MarketDataAnalyzer
//
//  Created by jiro on 10/09/25.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "../DataAnalyzer.h"
#import <vector>

enum {

	countOfPeriod = 2,

	countOfPriceClass = 4,

};

struct JikkenResult {

	double averageRateAverage;

	double stddevRateAverage;
};

@interface Jikken : NSObject {

	DataAnalyzer* analyzer;
	
	DbOperator* dbOperator;

	double priceRanges[ countOfPriceClass ][ 2 ];

}

- (void) jikkenGo;

- (void) jikkenSubFromStartDate: (NSString*) startDate0 toEndDate: (NSString*) endDate0
	andFromStartDate: (NSString*) startDate1 toEndDate: (NSString*) endDate
	intoResults: ( std::vector< JikkenResult >& ) results;

-(NSArray*) getBrandCodesWhereExchangeDataFrom:
	(NSString*) dataFrom 
	exchangeDateTo: (NSString*) dateTo 
	lowerLimit: (double) lowerLimit 
	andHigherLimit: (double) heigherLimit;

@end
